#  while 来计算 1 到 100 的总和
sum = 0
n = 100
counter = 1
while counter <= n:
    sum = sum+counter
    counter += 1
print("1到%d之和为：%d" % (n, sum))
print("=============================================")
var = 1
while var == 1:  # 表达式永远为 true
    num = int(input("输入一个数字  :"))
    print("你输入的数字是: ", num)

print("Good bye!")
